﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JHT.ABPLearn
{
    public static class AbpExtension
    {
        public static T Map<T>(this object obj) where T : class
        {
            if (obj != null)
            {
                return AutoMapper.Mapper.Map<T>(obj);
            }

            return null;
        }
    }
}
